<?php
/**
 * @version     1.0.0
 * @package     com_general
 * @copyright   Copyright (C) 2013. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      kent <kent@viseed.com> - http://viseed.com
 */
// no direct access
defined('_JEXEC') or die;

//Load admin language file
$lang = JFactory::getLanguage();
$lang->load('com_general', JPATH_ADMINISTRATOR);

$app = JFactory::getApplication();
$templateDir = JURI::base() . 'templates/' . $app->getTemplate();
$contact_info = get_article_from_cat(13);
$contact_info = $contact_info[0];
?>
<script type="text/javascript" src="<?php echo $templateDir.'/js/jquery.validate.js' ?>"></script>

<script type="text/javascript">
    jQuery('#slidecaption').hide();
    // only for demo purposes
jQuery.validator.setDefaults({
	submitHandler: function() {
		alert("submitted! (skipping validation for cancel button)");
	}
});

jQuery().ready(function($) {
	$("#form1").validate({
		errorLabelContainer: $("#form1 div.error")
	});
	$(".cancel").click(function() {
		validator.resetForm();
	});
});
</script>
<div class="blue_line2">
	<div class="path">
<a href="/">Home</a> &gt; Contact
</div>
</div>

<div class="inner_content">
	<div class="content">
    <div class="inner_title">Contact</div>
    
    <div class="contact_info">
      <?php echo $contact_info->introtext;?>
    </div>

    <div class="contact_form" >
    <form class="cmxform" id="form1"  action="" method="get">
      <div class="error">
		</div>
      <input name="fullname" placeholder="Full name (*)" id="fullname" title="Please enter full name (at least 10 characters)" required minlength="10" type="text" />
      <input name="email" placeholder="Email (*)" id="email" title="Please enter valid email" required type="email" />
      <input name="address" id="address" placeholder="Address" type="text" />
     <input name="phone" id="phone" placeholder="Phone" type="text" />
     <textarea name="msg" id="msg" title="Please enter message" placeholder="Message (*)" required cols="" rows=""></textarea>
    <input name="" type="submit" class="submit" value="Send" />
    </form>
    </div>
   
    <br class="clear" />
	</div>
</div>

<iframe width="100%" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Auckland,+New+Zealand&amp;aq=1&amp;oq=new+zealand+a&amp;sll=-44.906469,170.463867&amp;sspn=2.844115,5.817261&amp;ie=UTF8&amp;hq=&amp;hnear=Auckland,+New+Zealand&amp;ll=-36.84846,174.763332&amp;spn=0.012552,0.022724&amp;t=m&amp;z=14&amp;output=embed"></iframe>

